package com.yonyou.pmclouds.discuss.mapper;

import com.yonyou.pmclouds.basecom.dao.BaseMapper;
import com.yonyou.pmclouds.basecom.exception.BusinessException;
import com.yonyou.pmclouds.discuss.entity.DiscussNoticeVO;
import org.apache.ibatis.annotations.Param;

public interface DiscussNoticeMapper extends BaseMapper<DiscussNoticeVO> {
    DiscussNoticeVO[] queryByReceiver(@Param("receiver") String receiver, @Param("pageStart") int pageStart, @Param("pageSize") int pageSize);

    String hasUnreadNotice(String receiver);

    int countByReceiver(String receiver);

    int countUnreadByReceiver(String receiver);

    int makeNoticeRead(@Param("noticeId") String noticeId, @Param("receiver") String receiver) throws BusinessException;
}
